package com.shi.yibanjia.entity.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * 评论表
 *
 * @TableName tb_comments
 */
@TableName(value = "tb_comments")
@Data
public class Comments extends BaseEntity implements Serializable {

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    /**
     * 用户id
     */
    private Long uid;
    /**
     * 评论文本
     */
    private String content;
    /**
     * 图片数组,用分号（;）分割,最多存3个图片
     */
    private String pic;

    private Integer stars;

    @TableField(exist = false)
    private User user;
}